package huy.mmt.gamelathinh.util;
 
import huy.mmt.gamelathinh.R;
import android.app.Dialog;
import android.view.Window;
 
public class UtilDialog {
    /**
    * KhÃ´ng hiá»‡n thá»‹ titel cá»§a dialog vÃ  Ä‘áº·t background lÃ  1 bá»©c áº£nh null, Ä‘á»“ng thá»�i Ä‘áº·t hiá»‡u á»©ng
    * khi xuáº¥t hiá»‡n vÃ  táº¯t dialog
    * @param dialog
    */
    public static void iniDialog(Dialog dialog){
        dialog.requestWindowFeature(Window.FEATURE_NO_TITLE);
        dialog.getWindow().setBackgroundDrawableResource(R.drawable.bg_null);
        dialog.setCancelable(false);
        dialog.getWindow().getAttributes().windowAnimations = R.style.Animations_Dialog;
    }
}